﻿// CMyLinkInfoDlg.cpp: 实现文件
//

#include "pch.h"
#include "TrafficPhase.h"
#include "CMyLinkInfoDlg.h"
#include "afxdialogex.h"


// CMyLinkInfoDlg 对话框

IMPLEMENT_DYNAMIC(CMyLinkInfoDlg, CDialogEx)

CMyLinkInfoDlg::CMyLinkInfoDlg(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_DIALOGLinkInfo, pParent)
	, m_linkName(_T(""))
	, m_linkID(0)
{

}

CMyLinkInfoDlg::~CMyLinkInfoDlg()
{
}

void CMyLinkInfoDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT1, m_linkName);
	DDX_Text(pDX, IDC_EDIT2, m_linkID);
	DDV_MinMaxInt(pDX, m_linkID, 0, INT_MAX);
}


BEGIN_MESSAGE_MAP(CMyLinkInfoDlg, CDialogEx)
END_MESSAGE_MAP()

// CMyLinkInfoDlg 消息处理程序
CString CMyLinkInfoDlg::GetLinkName() {
	return m_linkName;
}

int CMyLinkInfoDlg::GetLinkID() {
	return m_linkID;
}